<template>
    <ul>
        <li>news001 <input type="text"></li> 
        <li>news002 <input type="text"></li> 
        <li>news003 <input type="text"></li> 
    </ul>
</template>

<script>
import { onBeforeUnmount } from 'vue'

export default {
    name:'News',
    setup(){
        onBeforeUnmount(()=>{
            console.log("News组件被销毁了")
        })
    }
}
</script>

<style>

</style>